import React from 'react'
import viewRouterUtils from '@/ui/antd/service/router/utils/viewRouterUtils'
import ViewRouteDto from '@/ui/antd/service/router/types/model/dto/ViewRouteDto'

// 模块
const routes = [
	{
		path: '/demo/amis/page',
		element: viewRouterUtils.lazyLoad(React.lazy(() => import('@/ui/antd/pages/main/view/demo/amis/page/Page'))),
		title: '基础页面',
	},
	{
		path: '/demo/amis/form/BaseForm',
		element: viewRouterUtils.lazyLoad(React.lazy(() => import('@/ui/antd/pages/main/view/demo/amis/form/BaseForm'))),
		title: '基础表单',
	},
	{
		path: '/demo/amis/form/MultiSelectForm',
		element: viewRouterUtils.lazyLoad(React.lazy(() => import('@/ui/antd/pages/main/view/demo/amis/form/MultiSelectForm'))),
		title: '联动选择框',
	},
	{
		path: '/demo/amis/superTable',
		element: viewRouterUtils.lazyLoad(React.lazy(() => import('@/ui/antd/pages/main/view/demo/amis/superTable/SuperTable'))),
		title: '超级表格',
	},
	{
		path: '/demo/antd/fillHeightTable',
		element: viewRouterUtils.lazyLoad(
			React.lazy(() => import('@/ui/antd/pages/main/view/demo/antd/fillHeightTable/FillHeightTable')),
		),
		title: '自动高度表格',
	},
	{
		path: '/demo/antd/form/basicForm',
		element: viewRouterUtils.lazyLoad(React.lazy(() => import('@/ui/antd/pages/main/view/demo/antd/form/basicForm/index'))),
		title: '基础表格',
	},
	{
		path: '/demo/antd/form/dynamicForm',
		element: viewRouterUtils.lazyLoad(React.lazy(() => import('@/ui/antd/pages/main/view/demo/antd/form/dynamicForm/index'))),
		title: '动态表格',
	},
	{
		path: '/demo/antd/form/validateForm',
		element: viewRouterUtils.lazyLoad(React.lazy(() => import('@/ui/antd/pages/main/view/demo/antd/form/validateForm/index'))),
		title: '验证表格',
	},

	{
		path: '/demo/antd/assembly/guide',
		element: viewRouterUtils.lazyLoad(React.lazy(() => import('@/ui/antd/pages/main/view/demo/antd/assembly/guide/index'))),
		title: '引导',
	},
	{
		path: '/demo/antd/dashboard/dataVisualize',
		element: viewRouterUtils.lazyLoad(
			React.lazy(() => import('@/ui/antd/pages/main/view/demo/antd/dashboard/dataVisualize/index')),
		),
		title: '数据可视化',
	},
] as ViewRouteDto[]

export default routes
